package JavaSe.GC;

import java.util.ArrayList;
import java.util.List;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}16:12
 */
public class GCTest {
    public static void main(String[] args) {
        int i = 0;
        List<String> list = new ArrayList<>();
        String a = "mjc.com";

        try {
            while (true){
                list.add(a);
                a = a + a;
                i++;
            }
        }catch (Throwable t){
            t.printStackTrace();
            System.out.println("遍历次数为" + i);
        }
    }
}
